﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;

namespace BUS
{
    public class PhongBUS
    {
        public static PhongDAO dao = new PhongDAO();
        public List<PhongDTO> GetAll()
        {
            
            return dao.GetAll();
        }
        public bool Insert(PhongDTO LP)
        {

           
            return dao.Insert(LP);

        }
        public List<PhongDTO> selectlikeMa(PhongDTO p)
        {
            //PhongDAO dao = new PhongDAO();
            return dao.SelectLikeMa(p);
        }
        public bool Update(PhongDTO p)
        {

            return dao.Update(p);
        }
        public bool Delete(PhongDTO p)
        {

            return dao.Delete(p);
        }
        public List<PhongDTO> LayPhongTheoMaLoaiPhong(string MaLoaiPhong)
        {
            return dao.LayPhongTheoMaLoaiPhong(MaLoaiPhong);
        }
        
    }
}
